package com.shopcart.controller;


import java.util.List;

import javax.ejb.Remote;
import javax.ejb.Remove;

import com.shopcart.entity.Cart;
import com.shopcart.entity.Customer;

@Remote
public interface CartController {
	void updateCart(List<Long> producIdList, List<Integer> productCountList, Integer size);
	
	void createCart(List<Long> producIdList, List<Integer> productCountList, Integer size);
	
	List<Cart> getCarts(Customer customer);

	Customer getCustomer();

	void setCustomer(Customer customer);

	void setCart(Cart cart);

	Cart getCart();
	
	void rollback();

	@Remove
	void remove();
}